import {resultsService} from "~/axios.js";
import {getUser} from "~/composables/auth.js";

// 8893:

// 获取样本来源
export function querySampleSource(type) {
    const params = '?type=' + type
    return resultsService.get("querySampleSource" + params)
}

// 检测结果获取
export function getUserResults() {
    const params = '?userName=' + getUser();
    return resultsService.get("getUserResults" +  params)
}